let MBASEURL, MSOCKETURL, MWEB_BASEURL

if (import.meta.env.MODE == 'development') {
	// 开发 npm run dev
	MBASEURL = 'https://api.vodeshop.com'
	MWEB_BASEURL = 'https://test.m.vodeshop.com'
	MSOCKETURL = 'ws://123.207.136.134:9010/ajaxchattest'
} else {
	// 生产 npm run build
	MBASEURL = 'https://api.vodeshop.com'
	MWEB_BASEURL = 'https://m.vodeshop.com'
	MSOCKETURL = 'ws://8.129.186.35:6001/'
}

const defaultShareConfig = {
	// 平台名称
	platform: '源晓退休计算器',
	// 项目logo
	logo: 'https://image.v1.vodeshop.com/Fj8kyBbYs71kEUNiFxbe1cd8csiV',
	// 页面分享配置
	share: {
		desc: '源晓退休计算器', // 分享描述
		title: '源晓退休计算器', // 分享标题
		path: 'pages/index/index', // 小程序分享路径
		imageUrl: 'https://image.v1.vodeshop.com/Fj8kyBbYs71kEUNiFxbe1cd8csiV' // 分享卡片封面
	}
}

export const BASEURL = MBASEURL
export const SOCKETURL = MSOCKETURL
export const WEB_BASEURL = MWEB_BASEURL
export const DefaultShareConfig = defaultShareConfig
export const imgBaseUrl = 'https://image.v1.vodeshop.com/' // 七牛域名
export const GD_FE_KEY = 'ba6d7bcba1c0f4f8b5dfb704d553ccf0' // 高德web端key
export const GD_S_KEY = 'f0d91cd10e926499e9e466e541afc203' // 高德web端服务key
export const GD_WX_KEY = 'ca374a4eb88275fd101ff3e40c745c9e' // 高德微信小程序key

// 过滤不需要token的接口
export const WHITE_LIST = [`${BASEURL}/api/auth/login/weixin`]
